#include<iostream>
#include<memory>
#include"SelectServer.hpp"

// ./selete_server 8888
int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage: " << argv[0] << " prot\n" << std::endl;
        return 1;
    }

    std::unique_ptr<SelectServer> svr(new SelectServer());

    svr->InitServer();
    svr->Loop();

    return 0;
}
